﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.Master" AutoEventWireup="true" CodeBehind="QLCSDL_Backup.aspx.cs" Inherits="TemplateH4.admin.QLCSDL_Backup" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 31px;
        }
        .style2
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align:center;">
        <h3>Backup CSDL</h3>
        <table>
            <tr>
                <td>
                    Username</td>
                <td>
                    <asp:TextBox ID="txtusername" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtusername" ErrorMessage="Bạn phải điền vào username"></asp:RequiredFieldValidator>
                                                            </td>
            </tr>
            <tr>
                <td>
                    Password</td>
                <td>
                    <asp:TextBox ID="txtpassword" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtpassword" ErrorMessage="Bạn phải điền vào password"></asp:RequiredFieldValidator>
                                                            </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnConnect" runat="server" onclick="btnConnect_Click" 
                        Text="Kết nối đến Server" />
                                                            </td>
            </tr>
            <tr>
                <td style="text-align: left; vertical-align: bottom;">
                    Chọn Database để thao tác</td>
                <td>
                    <asp:ListBox ID="listDB" runat="server" Height="111px" style="margin-left: 0px" 
                        Width="268px"></asp:ListBox>
                                                            </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                                   <table class="style1" style="vertical-align: top">
                        <tr>
                            <td bgcolor="#00CC00">
                                Đánh vào tên file backup</td>
                            <td bgcolor="#ff9900">
                                Chọn tập tin để restore</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtfilebackup" runat="server" Width="175px"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                    ControlToValidate="txtfilebackup" 
                                    ErrorMessage="Bạn phải đặt tên cho file sao lưu CSDL"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                    <asp:ListBox ID="listfilerestore" runat="server" Height="111px" style="margin-left: 0px" 
                        Width="138px"></asp:ListBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnbackup" runat="server" onclick="btnbackup_Click" 
                                    Text="Backup" />
                            </td>
                            <td>
                                <asp:Button ID="btnrestore" runat="server" onclick="btnrestore_Click" 
                                    Text="Restore" Width="66px"/>
                            </td>
                        </tr>
                    </table>    
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <br />
    <br />
    <br />
        
    </div>
</asp:Content>
